package com.example.dense_rack_server.utils;

import org.springframework.stereotype.Repository;

import java.util.LinkedHashMap;

/**
 * 全局变量RFID
 */
@Repository
public class CabinetLoginStatus {

    LinkedHashMap<String, Object> statusMap = new LinkedHashMap<>();

    public void set(String key, Object value) {
        statusMap.put(key, value);
    }

    public LinkedHashMap<String, Object> get() {
        return statusMap;
    }

    public void del(String key) {
        statusMap.remove(key);
    }
}
